/*
 * Copyright (C) 2012-2013  Romain DUBOIS
 * 
 * This file is part of NeMoS - Network and Modular Software
 * 
 * NeMoS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * NeMoS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with NeMoS.  If not, see <http://www.gnu.org/licenses/>.
 */
package nemos.resources;

import java.util.Locale;

/**
 * IResourcesListener : The resources listener interface.
 * 
 * <p>
 * Services registered under this interface will be notified of user-related
 * data changes.
 * </p>
 * 
 * @see IResourcesManager#getUserLocale()
 * @see IResourcesManager#setUserLocale(java.util.Locale)
 * @see IResourcesManager#getUserResources()
 * @see IResourcesManager#setUserResources(String)
 * 
 * @author Romain DUBOIS
 */
public interface IResourcesListener {

    /**
     * Notify the user locale has been changed.
     * 
     * @param pLocale
     *            The new user locale
     */
    void userLocaleChanged(Locale pLocale);

    /**
     * Notify the user resources have been changed.
     * 
     * @param pResources
     *            The new user resources
     */
    void userResourcesChanged(String pResources);
}
